package com.dzl.integral.dao;

import com.dzl.integral.pojo.WelfareIntegralGrant;
import com.dzl.integral.pojo.query.WelfareIntegralGrantQuery;
import com.dzl.integral.pojo.vo.WelfareIntegralGrantVo;
import org.springframework.stereotype.Repository;
import com.dzl.base.mapper.BaseMapper;

import java.util.List;

/**
 * 积分分发记录表(WelfareIntegralGrant)表数据库访问层
 * @author caobucao
 * @date 2021-09-07 10:39:28
 */
@Repository
public interface WelfareIntegralGrantMapper extends BaseMapper<WelfareIntegralGrant> {

    /**
     * 查询分发记录数据
     * @date 2021/9/7 11:07
     * @author caobucao
     * @param query 查询条件
     * @return java.util.List<com.dzl.integral.pojo.vo.WelfareIntegralGrantVo>
     */
    List<WelfareIntegralGrantVo> selectIntegralGrantVo(WelfareIntegralGrantQuery query);

    /**
     * 查询所有需要到账的积分
     * @date 2021/9/9 10:06
     * @author caobucao
     * @param
     * @return java.util.List<com.dzl.integral.pojo.WelfareIntegralGrant>
     */
    List<WelfareIntegralGrant> selectNeedToAccount();

    /**
     * 查找所有需要过期的积分
     * @date 2021/9/9 16:58
     * @author caobucao
     * @param
     * @return java.util.List<com.dzl.integral.pojo.WelfareIntegralGrant>
     */
    List<WelfareIntegralGrant> selectNeedToExpired();
}
